<{include file="admin/admin_head.html"}>
<body>
	<{include file="admin/admin_nav.html"}>
	<h1>招聘管理</h1>
	<div id="art-list">
		<ul>
			<li class="list-head">
				<span>
					<input type="checkbox" id="check-all" />
				</span>
				<span>ID</span>
				<span>职位名称</span>
				<span>发布时间</span>
				<span>截止时间</span>
				<span>招聘人数</span>
				<span>学历要求</span>
				<span>工作经验</span>
				<span>工作地点</span>
				<span>描述</span>
				<span>操作</span>
			</li>
			<{if $list}>
			<{foreach from=$list item=jobs}>
			<li>
				<span>
					<input type="checkbox" id="check-all" />
				</span>
				<span><{$jobs.id}></span>
				<span><{$jobs.name}></span>
				<span><{$jobs.addtime|date_format:"%Y-%m-%d"}></span>
				<span><{$jobs.endtime|date_format:"%Y-%m-%d"}></span>
				<span><{$jobs.needs}></span>
				<span><{$jobs.education}></span>
				<span><{$jobs.experience}></span>
				<span><{$jobs.location}></span>
				<span><{$jobs.description|strip_tags|truncate:30}></span>
				<span>
					<a href="jobs.php?action=editJobs&id=<{$jobs.id}>" class="edit_art">修改</a>
					<a href="jobs.php?action=delArticle&id=<{$jobs.id}>" class="del_art">删除</a>
				</span>
			</li>
			<{/foreach}>
			<{/if}>
		</ul>
	</div>
	<div>
		<a href="jobs.php?action=addJobs" title="添加招聘信息">添加招聘信息</a>
	</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".del_art").click(function(){
		return confirm("确定要删除该文章吗？");
	})
})
</script>
</body>
</html>